/**
 * 功能描述 表单
 */

define(function (require, exports, module){
	var EditGrid=require("editgrid");
	var Dialog = require("dialog");
	var store =require("store");
	var activeUser = store.get("user");
	 var aw = require("ajaxwrapper");
	 
    module.exports = {
        	UpDate:function(data,widget){
        		aw.ajax({
					url : "api/planitemgroup/query",
					data : {
						"planItem.pkPlanItem" : data,
						fetchProperties:"*,signUpStatus.*"
					},
					dataType : "json",
					success : function(datas){
						if(datas[0].signUpStatus!=null && datas[0].signUpStatus.key == "Confirm"){
							Dialog.alert({
								title : "提示",
								content : "该团已经是确认状态，不能进行修改！"
							});
							return false
						}else{
							return true;
						}
					}
				})
        	}
        };
});
